#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
char str[100];
void SubStr(char  arr[], int pos, int t)
{
	int i = 0,count = 0;
	for (i = pos - 1; i < pos + t-1; i++)
	{
		str[count++] = arr[i];
	}
	str[count] = '\0';
}
int main()
{
	char arr[100];
	int pos = 0, t = 0;
	gets(arr);
	scanf("%d", &pos);
	scanf("%d", &t);
	SubStr(arr,pos,t);
	puts(str);
	return 0;
}